<?php

function getEducation() {
    $myEducation = null;
    if (isset($_SESSION[EDUCATION]) && !empty($_SESSION[EDUCATION]) && !isset($_GET['refresh']))
        $myEducation = $_SESSION[EDUCATION];
    else {
        $myEducation = Education::getAll();

        $_SESSION[EDUCATION] = $myEducation;
    }
    return $myEducation;
}

?>